<h2>Edit comment</h2>
<form name="frmEdit" id="frmEdit" method="POST"
		action="<?php echo $this->url(array('controller'=>'comment', 'action'=>'edit'));?>">
<table>
	<tr>
		<td>ID:</td>
		<td><input readonly class="readonly" type="text" name="id" value="<?php if(isset($this->id)) echo $this->id; ?>"></input></td>
	</tr>
	<tr>
		<td>VN:</td>
		<td><textarea rows="4" cols="50" name="vn"><?php if(isset($this->vn)) echo $this->vn; ?></textarea></td>
	</tr>
	<tr>
		<td>JP:</td>
		<td><textarea rows="4" cols="50" style="ime-mode:active"  name="jp"><?php if(isset($this->jp)) echo $this->jp; ?></textarea></td>
	</tr>
	<tr>
		<td colspan="1"><input type="button" value="Save" onclick="edit()"></input></td>
	</tr>
</table>
</form>

<script type="text/javascript">
function edit(){
	$("#frmEdit").ajaxForm({
		success: function(data){
			if (data == "1") {
				loadPage(gobal_page);
				parent.$.colorbox.close();
			} else {
                alert(data);
			}
		}
	}).submit();
}
</script>